package com.education.wisdom.service.impl;

import com.education.common.utils.Convert;
import com.education.wisdom.mapper.LessonLabelMapper;
import com.education.wisdom.pojo.LessonLabel;
import com.education.wisdom.service.LessonLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 备课资源标签 服务层实现
 *
 * @author d
 * @date 2020-07-10 11:28:16
 */
@Service
public class LessonLabelServiceImpl implements LessonLabelService {

    @Autowired
    private LessonLabelMapper lessonLabelMapper;

    //查询备课资源标签信息
    @Override
    public LessonLabel selectLessonLabelById(Integer id) {
        return lessonLabelMapper.selectLessonLabelById(id);
    }

    // 查询备课资源标签列表
    @Override
    public List<LessonLabel> selectLessonLabelList(LessonLabel lessonLabel) {
        return lessonLabelMapper.selectLessonLabelList(lessonLabel);
    }

    // 新增备课资源标签
    @Override
    public int insertLessonLabel(LessonLabel lessonLabel) {
        return lessonLabelMapper.insertLessonLabel(lessonLabel);
    }

    //修改备课资源标签
    @Override
    public int updateLessonLabel(LessonLabel lessonLabel) {
        return lessonLabelMapper.updateLessonLabel(lessonLabel);
    }

    //删除备课资源标签对象
    @Override
    public int deleteLessonLabelByIds(String ids) {
        return lessonLabelMapper.deleteLessonLabelByIds(Convert.toStrArray(ids));
    }
}